Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

86
Views
print(~(123 >> 1)) genera -62 en Dart Mobile pero genera 4294967234 en Dart Web

Reduje mi pregunta de El mismo código de dardo genera un resultado diferente en la Web y en el móvil a esta única línea de código

 print(~(123 >> 1));

¿Por qué se imprime -62 en Dart mobile y 4294967234 en Dart web?

¿Cuál es la solución alternativa o correcta para hacer que el mismo código sea "multiplataforma"?

Editar

 ~ // what is this operator ? this is the route cause I guess
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Resuelto Reemplazó el ~ con

 // This is equivalent to the bitwise NOT operator ~ // However, this outputs a wrong a value on web, // so we do it manually static int bitwiseNot(int x) { return -x - 1; }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!